<?php

class Mensaje extends AppModel {

    public $label = 'Mensajes';
    public $useTable = 'msg_mensajes';
    public $plugin = 'Messaging';
    public $belongsTo = array('Messaging.Server');
    public $validate = array(
        'server_id' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El servidor es requerido'
            )
        ),
        'destino' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El destino es requerido'
            )
        ),
        'cuerpo' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El cuerpo es requerido'
            )
        )
    );
    

}